﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Dto;
using ZhonTai.Industry.Services.ProductModel.Dto.Input;
using ZhonTai.Industry.Services.ProductModel.Dto.Output;

namespace ZhonTai.Industry.Services.ProductModel
{
    /// <summary>
    /// 产品型号服务
    /// </summary>
    public interface IProductModelService
    {
        /// <summary>
        /// 查询
        /// </summary>
        Task<ProductModelGetOutput> GetAsync(long id);

        /// <summary>
        /// 分页查询
        /// </summary>
        Task<PageOutput<ProductModelGetPageOutput>> GetPageAsync(PageInput<ProductModelGetPageInput> input);

        /// <summary>
        /// 列表查询
        /// </summary>
        Task<IEnumerable<ProductModelGetListOutput>> GetListAsync(ProductModelGetListInput input);

        /// <summary>
        /// 新增
        /// </summary>
        Task<long> AddAsync(ProductModelAddInput input);

        /// <summary>
        /// 编辑
        /// </summary>
        Task UpdateAsync(ProductModelUpdateInput input);

        /// <summary>
        /// 删除
        /// </summary>
        Task<bool> DeleteAsync(long id);

        /// <summary>
        /// 软删除
        /// </summary>
        Task<bool> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        Task<bool> BatchSoftDeleteAsync(long[] ids);
    }
}